package com.itheima.factory;

import com.itheima.service.UserService;
import com.itheima.service.impl.UserServiceImpl;

/**
 * @author wz
 * @description:
 * @date 2021-10-30
 */
public class NoStaticFactory {
    /**
     * 1.配置非静态工厂bean对象 new NoStaticFactory()
     * 2.指定非静态方法,获取bean对象,并被ioc容器管理
     * @return
     */
    public UserService getObject(){
        return new UserServiceImpl();
    }
}
